//
//  rightSearchTableViewCell.m
//  PerfectWorld
//
//  Created by dllo on 16/8/29.
//  Copyright © 2016年 LST. All rights reserved.
//

#import "rightSearchTableViewCell.h"
#import "ListModel.h"
#import "UIImageView+WebCache.h"
@implementation rightSearchTableViewCell

- (void)setListModel:(ListModel *)listModel {
    _listModel = listModel;
    _labelName.text = listModel.name;
    _labelTitle.text = listModel.address;
    NSNumber *num = @(listModel.huxingCount);
    NSNumber *num1 = @(listModel.projectCount);
    NSString *str1 = [num description];
    NSString *str2 = [num1 description];
    _labelDZ.text = [NSString stringWithFormat:@"户型 %@ | 案例 %@", str1, str2];
    NSNumber *num2 = @(listModel.photoId);
    NSString *str3 = [num2 description];
    NSString *str4 = [str3 substringToIndex:3];
    [_searchImage sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://image.gooju.cn/images/%@/9/%@_0_9-.jpg", str4, str3]] placeholderImage:nil];
}
- (void)awakeFromNib {
    [super awakeFromNib];
    [self layoutIfNeeded];
}
@end
